package top.rainf.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * @author 星环
 * @date 2023/5/6 14:11:54
 * @description 公告版上的信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BoardMessage {
    private int id;
    private String title;
    private String content;
    private int creatorId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")

    private Timestamp createTime;
    private int readCount;

    //dto 字段
    private String authorName;
}
